POV-Ray : Newsgroups : povray.programming : I am so excited!!! : I am so excited!!! Server Time
21 Jul 2024 06:29:25 EDT (-0400)
  I am so excited!!!  
From: Slime
Date: 5 Oct 2002 21:11:42
Message: <3d9f8dce$1@news.povray.org>
I just found and fixed a bug! Weeha!

I noticed that if you #declare a texture with a normal, and that normal has
its accuracy defined, the accuracy doesn't actually change anything. (That
is, you could change accuracy to 1000 via "accuracy 1000" and there would be
no difference in the normal when applied to an object.)

So I downloaded the POV source and, from my somewhat limited experience with
C++, managed to track down the problem to the Copy_Tnormal function in
normal.cpp. Adding the line

New->Delta = Old->Delta;

after line 634 of normal.cpp fixes the problem. Looks like accuracies just
weren't being copied correctly. (Or at all.)

So there's my first bug fix! That made my day. This bug has been plaguing me
for months.

(Ironically, I posted this bug near the end of the beta testing phase but no
one replied to the post. *shrug*)

Oh, btw, is this the right group for this? Sorry if it isn't.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.